package com.loginconsumer.service.impl;

import com.loginconsumer.client.LoginClient;
import com.loginconsumer.service.Loginconsumerservice;
import dto.Dto;
import dto.GetAdmin;
import org.springframework.stereotype.Service;
import pojo.Admin;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class Loginconsumerserviceimpl implements Loginconsumerservice {
    @Resource
    private LoginClient loginClient;

    @Override
    public Dto<Admin> selectadmin(String username) {
        return loginClient.selectadmin(username);
    }

    @Override
    public List selectAdminPer(String adminId) {
        return loginClient.selectAdminPer(adminId);
    }

    @Override
    public List getAdmin1(Map<String,Object> map) {
        List list=loginClient.getAdmin1(map);
        return list;
    }

    @Override
    public int updateAdmin(List<GetAdmin> list) {
        return loginClient.updateAdmin(list);
    }
}
